from jiangyi5.api.login import login

# 后续测试代码保持不变
test_data = [
    {"username": "13488888888", "password": "123456"},
    {"username": "", "password": "123456"}
]
for i in test_data:
    tel = i.get("username")
    res = login(tel)
    print(res)
    # 注意：固定一个数据进行判断是符合断言，剩余另一个断言不符合
    if tel == "13488888888":
        assert "账号正确" == res
    else:
        assert "账号错误" == res